#coding:utf8
'''统计文件中的英文单词数'''

import re
with open('data10.txt') as f:
    data = f.read()

rule = r'[a-zA-Z]+'
pattern = re.compile(rule)
result = pattern.findall(data)
print len(result)